package cn.kgc.javaweb.mapper;

import cn.kgc.javaweb.vo.SysUserVO;
import cn.kgc.javaweb.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/6/26
 */
public interface UserMapper {
    Integer insertUser(SysUser sysUser);

    SysUser selectByUserName(String username);

    List<SysUserVO> selectAll(String username);

    Integer updateUser(SysUser sysUser);

    Integer addUser(SysUser sysUser);

    Integer deleteByIds(String ids);

    Integer updateState(@Param("id") Integer id, @Param("state") Integer state);

    Integer replacepwd(@Param("id") Integer id,@Param("pwd") String pwd);
}
